// 确保购物车路由已注册
const cartRoutes = require('./routes/cart');
app.use('/api/cart', cartRoutes);